//
//  UserCustom.m
//  cutter
//
//  Created by mac on 16/2/19.
//  Copyright © 2016年 e360. All rights reserved.
//

#import "UserCustom.h"

//
@implementation UserCenterTable
-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    if (self.presentationController) {
        UIView *parent = [[self.navigationController view] superview];
        if (parent) {
            [parent.layer setCornerRadius:6];
        }else{
            parent = [self.view superview];
            if (parent) {
                [parent.layer setCornerRadius:6];
            }
        }
    }
}
-(CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
    if (section == 0) {
        return 0.1;
    }
    return tableView.sectionHeaderHeight;
}
@end

//
@implementation UserCenterNavigation
- (void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    //
    UIView *parent = [self.view superview];
    if (parent) {
        [parent.layer setCornerRadius:6];
    }
}
@end